

<div class="admin_left">
</div>

<div class="admin_right">
    <h1>Items</h1>
    <?php
        echo $this->Form->create('Item',array('action' => 'search'));
        echo $this->Form->input('keyword', array('label' => 'Search for'));
        echo $this->Form->end('Search');
    ?>

    <?php if ($isFound == '0'): ?>
        There are no results matched your query
    <?php else: ?>
        <table class="table table-striped table-bordered">
            <tr>
                <th>Id</th>
				<th>Name</th>
				<th>Original Price</th>
				<th>Description</th>
            </tr>

        <!-- Here's where we loop through our $list array, printing out customers info -->

        <?php foreach ($list as $item): ?>
            <tr>
                <td><?php echo $item['Item']['id']; ?></td>
				<td><?php echo $item['Item']['name']; ?></td>
				<td><?php echo $item['Item']['original_price']; ?></td>
				<td><?php echo $item['Item']['description']; ?></td>
            </tr>
        <?php endforeach; ?>
        </table>
    <?php endif; ?>
</div>